package com.tsing.service;

import com.tsing.common.result.PageResult;
import com.tsing.pojo.dto.NewsDTO;
import com.tsing.pojo.vo.PostDetailsVO;

/**
 * @author 吴阳基
 * @datetime 2023/12/4 20:51
 */
public interface NewsService {
    PageResult<PostDetailsVO> list(Integer page, Integer size, Integer status, String title);

    int fail(Integer id, Integer status,String msg);

    int pass(Integer id, Integer status);

    PageResult<PostDetailsVO> findPublished(NewsDTO newsDTO);

    int down_or_up(Integer id, Integer enable);

    PostDetailsVO one(Integer id);
}
